<!DOCTYPE html>
<body>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
  <script src="/webxr/resources/webxr_util.js"></script>
  <script src="/webxr/resources/webxr_test_constants.js"></script>
  <script>
    // This test is chromium specific as, though supportsSession is removed from
    // the spec it is still implemented, albeit as a deprecated method, in
    // chromium. Keeping this test until such time as it is removed.
    xr_promise_test(
      "supportsSession resolves when inline options supported",
      (t) => {
      return navigator.xr.test.simulateDeviceConnection(TRACKED_IMMERSIVE_DEVICE)
        .then( (controller) => {
          // Inline sessions should be supported.
          return navigator.xr.supportsSession('inline');
        });
    });
  </script>
</body>
